﻿#ifndef MYNAMESPACE_H
#define MYNAMESPACE_H

#include <QtCore/qglobal.h>
#include <QObject>

QT_BEGIN_NAMESPACE

class My
{
    Q_OBJECT

public:
    enum ModbusDataType{
        Coil,
        Register
    };
    Q_ENUM(ModbusDataType);

    enum ObjectType{
        M,
        X,
        Y,
        S,
        M8xxx,
        T,
        C,
        D,
        TD,
        CD,
        D8xxx,
        FD,
        FD8xxx,
        ED,
        DM,
        DX,
        DY,
        DS,
        DM8xxx,
        DT,
        DC,
        ID,
        QD
    };
    Q_ENUM(ObjectType);

    enum PushButtonOperate{
        Set_ON,
        Set_OFF,
        Set_REVERSE,
        Set_Instantaneous_On,
        Set_Data,
        Interface_Jump,
        Windows_Open,
        Windows_Close
    };
    Q_ENUM(PushButtonOperate);

    enum PushButtonCopyOperate{
        Coil_Copy,
        Registers_Copy
    };
    Q_ENUM(PushButtonCopyOperate);

    enum FourArithmeticType{
        Addition,
        Subtraction,
        Multiplication,
        Division
    };
    Q_ENUM(FourArithmeticType);

    enum NumberType{
        Constant,
        Variable
    };
    Q_ENUM(NumberType);

    enum NumberBaseType{
        Dec,
        Hex,
        Float,
        Unsigned
    };
    Q_ENUM(NumberBaseType);
};


QT_END_NAMESPACE

#endif // MYNAMESPACE_H
